package com.wh.proxy;

public class Proxy {

    private Host host;

    Proxy(){

    }

    Proxy(Host host){
        this.host=host;
    }

    public void rent(){
        seeHouse();
        host.rent();
        money();
    }

    public void seeHouse(){

        System.out.println("看房子");
    }

    public void money(){

        System.out.println("收房租");
    }
}
